[HVM][SVM] Check if SVM is disabled by the BIOS before enabling it.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 12 Oct 2006 15:12:10 +0000 (16:12 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 12 Oct 2006 15:12:10 +0000 (16:12 +0100)
commitb3ec0ca6b6b4f2d8ee68e7aa655be8a859b9125d
tree3da625e803743f176d20702da5ac36b052ddfe9f
parente402c829968a527f751a19c3041d271a16532d2f
[HVM][SVM] Check if SVM is disabled by the BIOS before enabling it.

Newer BIOS implementations will be able to disable the SVM feature,
although an additional test of an MSR  (VMCR 0xC0010114 bit 4) is
necessary (set equals disabled).  Bit 4 of MSR 0xc0010114 returns 0
(SVM enabled) on machines with older BIOS' without the SVM disable
feature support.

Signed-off-by: Wei Huang <wei.huang2@amd.com>=20
Signed-off-by: Tom Woller <thomas.woller@amd.com>=20
xen/arch/x86/hvm/svm/svm.c